﻿<%@ Page Language="C#" MasterPageFile="~/Teacher/TeacMasterPage.master" AutoEventWireup="true" CodeFile="Questions.aspx.cs" Inherits="Teacher_Default3" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentBody" Runat="Server">
<form runat="server">
试题管理
    <br />
<a href="AddQuestion.aspx">添加试题</a><br />

    <a href="FillInBlank.aspx">填空题</a>
<a href="ExclusiveChoice.aspx">单选题</a>
<a href="MultipleChoice.aspx">多选题</a>
<a href="ShortAnswer.aspx">简答题</a>
    <br />
    <br />
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:onlineexamConnectionString %>"
        SelectCommand="SELECT t_fillinblank.title, t_fillinblank.answer, t_fillinblank.hardLevel, t_fillinblank.score, t_fillinblank.teacherId, t_fillinblank.date, t_fillinblank.analysis, t_teacher.name, t_course.name AS 课程  FROM t_fillinblank INNER JOIN t_teacher ON t_fillinblank.teacherId = t_teacher.id INNER JOIN t_course ON t_teacher.courseId = t_course.id">
    </asp:SqlDataSource>
    <asp:GridView ID="GV_a" runat="server" AutoGenerateColumns="False" BackColor="White"
        BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3" DataSourceID="SqlDataSource1" Visible="True" Width="747px" >
        <FooterStyle BackColor="White" ForeColor="#000066" />
        <Columns>
            <asp:BoundField DataField="title" HeaderText="题目" SortExpression="title" />
            <asp:BoundField DataField="answer" HeaderText="答案" SortExpression="answer" />
            <asp:BoundField DataField="hardLevel" HeaderText="难度" SortExpression="hardLevel" />
            <asp:BoundField DataField="score" HeaderText="分值" SortExpression="score" />
            <asp:BoundField DataField="date" HeaderText="发布日期" SortExpression="date" />
            <asp:BoundField DataField="analysis" HeaderText="题目分析" SortExpression="analysis" />
            <asp:BoundField DataField="name" HeaderText="发布教师" SortExpression="name" />
            <asp:BoundField DataField="课程" HeaderText="课程" SortExpression="课程" />
        </Columns>
        <RowStyle ForeColor="#000066" />
        <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
        <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
    </asp:GridView>
    &nbsp;&nbsp;
    <br />
</form>

</asp:Content>

